cmake_minimum_required(VERSION 3.16)
project(data_structure_c C)

set(CMAKE_C_STANDARD 11)
set(CMAKE_BUILD_TYPE Debug)
# window平台
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fexec-charset=GBK")

add_executable(data_structure_c
        main.c
        src/constant.h
        src/linear_list/linear_list_menu.c
        src/linear_list/linear_list_menu.h
        src/linear_list/linear_list_impl.c
        src/linear_list/linear_list_impl.h
        src/linear_list/linked_list_impl.c
        src/linear_list/linked_list_impl.h
        src/linear_list/circular_linked_list.c
        src/linear_list/circular_linked_list.h
        src/linear_list/double_linked_list.c
        src/linear_list/double_linked_list.h
        src/stack_queue/stack.h
        src/stack_queue/stack.c
        src/stack_queue/stack_queue_menu.c
        src/stack_queue/stack_queue_menu.h
        src/stack_queue/queue.c
        src/stack_queue/queue.h
        src/stack_queue/cycle_queue.c
        src/stack_queue/cycle_queue.h
        src/string/string_menu.c
        src/string/string_menu.h
        src/string/hstring.c
        src/string/hstring.h
        src/string/lstring.c
        src/string/lstring.h
        src/array/array_menu.c
        src/array/array_menu.h
        src/array/array.c
        src/array/array.h
        src/array/ts_matrix.c
        src/array/ts_matrix.h
        src/tree/bi_tree.c
        src/tree/bi_tree.h
        src/tree/tree_menu.c
        src/tree/tree_menu.h
        src/tree/bi_thr_tree.c
        src/tree/bi_thr_tree.h
        src/tree/parent_tree.c
        src/tree/parent_tree.h
        src/tree/child_tree.c
        src/tree/child_tree.h
        src/tree/cs_tree.c
        src/tree/cs_tree.h
        src/tree/huffman_tree.c
        src/tree/huffman_tree.h
        src/graph/order_graph.c
        src/graph/order_graph.h
        src/graph/graph_menu.c
        src/graph/graph_menu.h
        src/graph/al_graph.c
        src/graph/al_graph.h
        src/graph/graph_constant.h
        src/graph/ol_graph.c
        src/graph/ol_graph.h
        src/graph/search_graph.c
        src/graph/search_graph.h
        src/graph/dbf_tree.c
        src/graph/dbf_tree.h
        src/graph/prim.c
        src/graph/prim.h
        src/graph/kruskal.c
        src/graph/kruskal.h
        src/graph/dijkstra.c
        src/graph/dijkstra.h
        src/graph/floyd.c
        src/graph/floyd.h
        src/graph/aoe.c
        src/graph/aoe.h
        src/search/search_menu.h
        src/search/search_menu.c
        src/search/seq_search.c
        src/search/seq_search.h
        src/search/bst_search.c
        src/search/bst_search.h
        src/search/avl_search.c
        src/search/avl_search.h
        src/search/rb_search.c
        src/search/rb_search.h
        src/search/btree.c
        src/search/btree.h
        src/search/bp_tree.c
        src/search/bp_tree.h
        src/search/hash_search.c
        src/search/hash_search.h
        src/sort/sort_menu.c
        src/sort/sort_menu.h
        src/sort/straight_sort.c
        src/sort/straight_sort.h
        src/sort/shell_sort.c
        src/sort/shell_sort.h
        src/sort/bubble_sort.c
        src/sort/bubble_sort.h
        src/sort/quick_sort.c
        src/sort/quick_sort.h
        src/sort/select_sort.c
        src/sort/select_sort.h
        src/sort/merge_sort.c
        src/sort/merge_sort.h
        src/sort/heap_sort.c
        src/sort/heap_sort.h)
